
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'vuex'

Vue.use(Vuex)
/**
* 解决ie不等低端浏览器不支持babel特性
* npm install babel-polyfill --save
**/
import 'babel-polyfill'

// 注册指令
import './directive'

import './assets/ui/export.less';

import './assets/common.css'

import store from './vuex'
Vue.config.productionTip = false
let debug = process.env.NODE_ENV !== 'production'
console.log('调试模式：', debug)
/* eslint-disable no-new */
let app = new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
// 调试
if (debug) window.app = app
